/*
 * An XML document type.
 * Localname: state
 * Namespace: urn:jbpm.org:jpdl-3.2
 * Java type: x2.orgJpdl3.jbpm.StateDocument
 *
 * Automatically generated - do not modify.
 */
package x2.orgJpdl3.jbpm;


/**
 * A document containing one state(@urn:jbpm.org:jpdl-3.2) element.
 *
 * This is a complex type.
 */
public interface StateDocument extends org.apache.xmlbeans.XmlObject
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(StateDocument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s9AF6EB416A5C93629A4C02ECFBC1909B").resolveHandle("state2ad6doctype");
    
    /**
     * Gets the "state" element
     */
    x2.orgJpdl3.jbpm.StateDocument.State getState();
    
    /**
     * Sets the "state" element
     */
    void setState(x2.orgJpdl3.jbpm.StateDocument.State state);
    
    /**
     * Appends and returns a new empty "state" element
     */
    x2.orgJpdl3.jbpm.StateDocument.State addNewState();
    
    /**
     * An XML state(@urn:jbpm.org:jpdl-3.2).
     *
     * This is a complex type.
     */
    public interface State extends org.apache.xmlbeans.XmlObject
    {
        public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
            org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(State.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s9AF6EB416A5C93629A4C02ECFBC1909B").resolveHandle("stateed13elemtype");
        
        /**
         * Gets a List of "description" elements
         */
        java.util.List<java.lang.String> getDescriptionList();
        
        /**
         * Gets array of all "description" elements
         * @deprecated
         */
        java.lang.String[] getDescriptionArray();
        
        /**
         * Gets ith "description" element
         */
        java.lang.String getDescriptionArray(int i);
        
        /**
         * Gets (as xml) a List of "description" elements
         */
        java.util.List<org.apache.xmlbeans.XmlString> xgetDescriptionList();
        
        /**
         * Gets (as xml) array of all "description" elements
         * @deprecated
         */
        org.apache.xmlbeans.XmlString[] xgetDescriptionArray();
        
        /**
         * Gets (as xml) ith "description" element
         */
        org.apache.xmlbeans.XmlString xgetDescriptionArray(int i);
        
        /**
         * Returns number of "description" element
         */
        int sizeOfDescriptionArray();
        
        /**
         * Sets array of all "description" element
         */
        void setDescriptionArray(java.lang.String[] descriptionArray);
        
        /**
         * Sets ith "description" element
         */
        void setDescriptionArray(int i, java.lang.String description);
        
        /**
         * Sets (as xml) array of all "description" element
         */
        void xsetDescriptionArray(org.apache.xmlbeans.XmlString[] descriptionArray);
        
        /**
         * Sets (as xml) ith "description" element
         */
        void xsetDescriptionArray(int i, org.apache.xmlbeans.XmlString description);
        
        /**
         * Inserts the value as the ith "description" element
         */
        void insertDescription(int i, java.lang.String description);
        
        /**
         * Appends the value as the last "description" element
         */
        void addDescription(java.lang.String description);
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "description" element
         */
        org.apache.xmlbeans.XmlString insertNewDescription(int i);
        
        /**
         * Appends and returns a new empty value (as xml) as the last "description" element
         */
        org.apache.xmlbeans.XmlString addNewDescription();
        
        /**
         * Removes the ith "description" element
         */
        void removeDescription(int i);
        
        /**
         * Gets a List of "event" elements
         */
        java.util.List<x2.orgJpdl3.jbpm.EventDocument.Event> getEventList();
        
        /**
         * Gets array of all "event" elements
         * @deprecated
         */
        x2.orgJpdl3.jbpm.EventDocument.Event[] getEventArray();
        
        /**
         * Gets ith "event" element
         */
        x2.orgJpdl3.jbpm.EventDocument.Event getEventArray(int i);
        
        /**
         * Returns number of "event" element
         */
        int sizeOfEventArray();
        
        /**
         * Sets array of all "event" element
         */
        void setEventArray(x2.orgJpdl3.jbpm.EventDocument.Event[] eventArray);
        
        /**
         * Sets ith "event" element
         */
        void setEventArray(int i, x2.orgJpdl3.jbpm.EventDocument.Event event);
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "event" element
         */
        x2.orgJpdl3.jbpm.EventDocument.Event insertNewEvent(int i);
        
        /**
         * Appends and returns a new empty value (as xml) as the last "event" element
         */
        x2.orgJpdl3.jbpm.EventDocument.Event addNewEvent();
        
        /**
         * Removes the ith "event" element
         */
        void removeEvent(int i);
        
        /**
         * Gets a List of "exception-handler" elements
         */
        java.util.List<x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler> getExceptionHandlerList();
        
        /**
         * Gets array of all "exception-handler" elements
         * @deprecated
         */
        x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler[] getExceptionHandlerArray();
        
        /**
         * Gets ith "exception-handler" element
         */
        x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler getExceptionHandlerArray(int i);
        
        /**
         * Returns number of "exception-handler" element
         */
        int sizeOfExceptionHandlerArray();
        
        /**
         * Sets array of all "exception-handler" element
         */
        void setExceptionHandlerArray(x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler[] exceptionHandlerArray);
        
        /**
         * Sets ith "exception-handler" element
         */
        void setExceptionHandlerArray(int i, x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler exceptionHandler);
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "exception-handler" element
         */
        x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler insertNewExceptionHandler(int i);
        
        /**
         * Appends and returns a new empty value (as xml) as the last "exception-handler" element
         */
        x2.orgJpdl3.jbpm.ExceptionHandlerDocument.ExceptionHandler addNewExceptionHandler();
        
        /**
         * Removes the ith "exception-handler" element
         */
        void removeExceptionHandler(int i);
        
        /**
         * Gets a List of "timer" elements
         */
        java.util.List<x2.orgJpdl3.jbpm.TimerDocument.Timer> getTimerList();
        
        /**
         * Gets array of all "timer" elements
         * @deprecated
         */
        x2.orgJpdl3.jbpm.TimerDocument.Timer[] getTimerArray();
        
        /**
         * Gets ith "timer" element
         */
        x2.orgJpdl3.jbpm.TimerDocument.Timer getTimerArray(int i);
        
        /**
         * Returns number of "timer" element
         */
        int sizeOfTimerArray();
        
        /**
         * Sets array of all "timer" element
         */
        void setTimerArray(x2.orgJpdl3.jbpm.TimerDocument.Timer[] timerArray);
        
        /**
         * Sets ith "timer" element
         */
        void setTimerArray(int i, x2.orgJpdl3.jbpm.TimerDocument.Timer timer);
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "timer" element
         */
        x2.orgJpdl3.jbpm.TimerDocument.Timer insertNewTimer(int i);
        
        /**
         * Appends and returns a new empty value (as xml) as the last "timer" element
         */
        x2.orgJpdl3.jbpm.TimerDocument.Timer addNewTimer();
        
        /**
         * Removes the ith "timer" element
         */
        void removeTimer(int i);
        
        /**
         * Gets a List of "transition" elements
         */
        java.util.List<x2.orgJpdl3.jbpm.TransitionDocument.Transition> getTransitionList();
        
        /**
         * Gets array of all "transition" elements
         * @deprecated
         */
        x2.orgJpdl3.jbpm.TransitionDocument.Transition[] getTransitionArray();
        
        /**
         * Gets ith "transition" element
         */
        x2.orgJpdl3.jbpm.TransitionDocument.Transition getTransitionArray(int i);
        
        /**
         * Returns number of "transition" element
         */
        int sizeOfTransitionArray();
        
        /**
         * Sets array of all "transition" element
         */
        void setTransitionArray(x2.orgJpdl3.jbpm.TransitionDocument.Transition[] transitionArray);
        
        /**
         * Sets ith "transition" element
         */
        void setTransitionArray(int i, x2.orgJpdl3.jbpm.TransitionDocument.Transition transition);
        
        /**
         * Inserts and returns a new empty value (as xml) as the ith "transition" element
         */
        x2.orgJpdl3.jbpm.TransitionDocument.Transition insertNewTransition(int i);
        
        /**
         * Appends and returns a new empty value (as xml) as the last "transition" element
         */
        x2.orgJpdl3.jbpm.TransitionDocument.Transition addNewTransition();
        
        /**
         * Removes the ith "transition" element
         */
        void removeTransition(int i);
        
        /**
         * Gets the "name" attribute
         */
        java.lang.String getName();
        
        /**
         * Gets (as xml) the "name" attribute
         */
        org.apache.xmlbeans.XmlString xgetName();
        
        /**
         * Sets the "name" attribute
         */
        void setName(java.lang.String name);
        
        /**
         * Sets (as xml) the "name" attribute
         */
        void xsetName(org.apache.xmlbeans.XmlString name);
        
        /**
         * Gets the "async" attribute
         */
        java.lang.String getAsync();
        
        /**
         * Gets (as xml) the "async" attribute
         */
        org.apache.xmlbeans.XmlString xgetAsync();
        
        /**
         * True if has "async" attribute
         */
        boolean isSetAsync();
        
        /**
         * Sets the "async" attribute
         */
        void setAsync(java.lang.String async);
        
        /**
         * Sets (as xml) the "async" attribute
         */
        void xsetAsync(org.apache.xmlbeans.XmlString async);
        
        /**
         * Unsets the "async" attribute
         */
        void unsetAsync();
        
        /**
         * A factory class with static methods for creating instances
         * of this type.
         */
        
        public static final class Factory
        {
            public static x2.orgJpdl3.jbpm.StateDocument.State newInstance() {
              return (x2.orgJpdl3.jbpm.StateDocument.State) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
            
            public static x2.orgJpdl3.jbpm.StateDocument.State newInstance(org.apache.xmlbeans.XmlOptions options) {
              return (x2.orgJpdl3.jbpm.StateDocument.State) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
            
            private Factory() { } // No instance of this class allowed
        }
    }
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static x2.orgJpdl3.jbpm.StateDocument newInstance() {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static x2.orgJpdl3.jbpm.StateDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static x2.orgJpdl3.jbpm.StateDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static x2.orgJpdl3.jbpm.StateDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static x2.orgJpdl3.jbpm.StateDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static x2.orgJpdl3.jbpm.StateDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (x2.orgJpdl3.jbpm.StateDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
